package com.tulele.vtool.service.impl;

import com.tulele.vtool.mapper.PlatformCommodityInfoMapper;
import com.tulele.vtool.model.PlatformCommodityInfo;
import com.tulele.vtool.service.IPlatformCommodityInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PlatformCommodityInfoServiceImpl implements IPlatformCommodityInfoService {

    @Autowired
    private PlatformCommodityInfoMapper platformCommodityInfoMapper;

    @Override
    public int recordPlatformCommodityInfo(PlatformCommodityInfo platformCommodityInfo) {
        return platformCommodityInfoMapper.addPlatformCommodityInfo(platformCommodityInfo);
    }

    @Override
    public int modifyPlatformCommodityInfo(PlatformCommodityInfo platformCommodityInfo) {
        return platformCommodityInfoMapper.updPlatformCommodityInfo(platformCommodityInfo);
    }
}
